<template>
  <div>
    <Category />
    <SpuList v-if="flag" />
    <AddSpu v-else />
  </div>
</template>

<script>
import Category from "./category/index.vue";
import SpuList from "./spuList/index.vue";
import AddSpu from "./addSpu/index.vue";

export default {
  name: "Spu",
  components: {
    Category,
    SpuList,
    AddSpu,
  },
  data() {
    return {
      flag: false,
    };
  },
};
</script>

<style scoped></style>
